package com.jsj.mapper;

import com.jsj.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AdminMapper {

    Admin queryAdmin(@Param("username") String username, @Param("password") String password,@Param("duty") String duty);
    List<Admin> queryAllAdmin();
    Boolean updateByAdminId(Admin admin);
    Boolean addAdmin(Admin admin);
    Boolean deleteById(int id);
    Admin queryAdminById(int id);
}
